<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>z_imgcode</title>
</head>

<body>
<form action="" method="get">
	<input type="name" name="yyy" style="width:300px; border:1px solid #663300;"><br /><br />
	<img src="z_imgcode.php" width="100" onclick='this.src="z_imgcode.php?"+Math.random();' style="cursor:pointer; border:1px solid #CC9900;"><br /><br />
    <input type="submit" /><br /><br />
</form>


<?php
if(isset($_GET['yyy'])){
	if($_GET['yyy'] == strtolower($_SESSION['yzm'])){
		echo '输入正确。';
	}else{
		echo '输入错误！';
	}
}
?>
</body>
</html>
